/*
*************************************
* PocketGTT
*************************************
This file is part of PocketGTT.

PocketGTT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

PocketGTT is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PocketGTT.  If not, see <http://www.gnu.org/licenses/>.
*/

import QtQuick 1.0


Item {

    Item {
        id: textPref
        width: parent.width
        height: infotext.height + 10
        anchors.top: parent.top

        Text {
            id: infotext
            text: "Ultime ricerche:"
            color: myWin.theme.blue_background //"#09a7cc"
            anchors.centerIn: parent
            width: parent * 0.95
            wrapMode: Text.Wrap
            font.pixelSize: myWin.theme.textSizeM
            font.bold: true
        }
    }


    Rectangle {
        anchors.fill: listPref
        color: myWin.theme.preferred_list_background
        opacity: 0.5
    }

    ListView {
        id: listPref
        width: parent.width

        anchors.top: textPref.bottom
        anchors.topMargin: 10
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 5
        //        anchors.margins: 35
        anchors.leftMargin: 35
        anchors.rightMargin: 35
        clip: true
        //        spacing: 5
        model: GTT_preferredStopList
        snapMode: ListView.SnapToItem
        delegate: PreferredListPageDelegate {}



    }
    states: [
        State {
            when: GTT.SelectMultipleStopsStatus
            PropertyChanges { target: preferredSelectionStop; opacity: 0}
        }
    ]
    transitions: [
        Transition {
            NumberAnimation { properties: "opacity"; duration: myWin.theme.changetimeM}
            //            ColorAnimation { duration: changetime }
            //            PropertyAnimation { properties: "text"; duration: 400}
        }
    ]

}
